package problema001;

public class Mult3y5 {
	
	public static void main(String[] args){
		System.out.println(encontrarMult());
	}
	
	public static int encontrarMult(){
		int res = 0;
		for(int i = 1; i <1000; i++){
			if(i % 3 == 0 || i % 5 == 0) res += i;
		}
		return res;
	}

}
